package com.dwms.feign.declare;

import com.dwms.entity.PageResponse;
import com.dwms.entity.QueryRequest;
import com.dwms.entity.Result;
import com.dwms.entity.declare.taxRate.request.TaxRateQueryRequest;
import com.dwms.entity.declare.taxRate.request.TaxRateRequest;
import com.dwms.entity.declare.taxRate.response.TaxRateResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName: TaxRateController
 * @Description: TaxRate
 * @Create 2025-09-06 14:19:00
 * @Author WH
 * @Since 1.0.0
**/
@FeignClient(value = "declare-server", path = "/taxRate")
public interface TaxRateFeignClient {

    /**
     * 保存
     *
     * @param taxRateRequest
     *          请求参数
     * @return
     */
    @PostMapping("/save")
    Result save(@RequestBody TaxRateRequest taxRateRequest);

    /**
     * 修改
     *
     * @param taxRateRequest
     *          请求参数
     * @return
     */
    @PostMapping("/update")
    Result update(@RequestBody TaxRateRequest taxRateRequest);
    

    /**
     * 分页查询
     *
     * @param query
     *          查询参数
     * @return
     */
    @PostMapping("/findPage")
    Result<PageResponse<TaxRateResponse>> findPage(@RequestBody TaxRateQueryRequest query);

    /**
     *  根据ID查询
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/findById")
    Result findById(@RequestBody QueryRequest query);

    /**
     * 删除
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/delete")
    Result delete(@RequestBody QueryRequest query);

}
